﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Linq;
using System.Data.Linq.Mapping;

namespace Runda.CMS.Order.Entity
{
    [Table(Name = "Out_Inventory")]
    public class Inventory
    {
        [Column(Name = "cInvBarCode", DbType = "varchar(20) NOT NULL", IsPrimaryKey = true, CanBeNull = false)]
        public String id { get; set; }

        [Column(Name = "cInvCode", DbType = "VarChar(20) NOT NULL", CanBeNull = false, UpdateCheck = UpdateCheck.Never)]
        public String batchCode { get; set; }

        [Column(Name = "cInvName", DbType = "VarChar(60) NOT NULL", CanBeNull = false, UpdateCheck = UpdateCheck.Never)]
        public String name { get; set; }

        [Column(Name = "cInvStd", DbType = "VarChar(30) NOT NULL", CanBeNull = false, UpdateCheck = UpdateCheck.Never)]
        public String standard { get; set; }

        [Column(Name = "cInvM_Unit", DbType = "VarChar(8) NOT NULL", CanBeNull = false, UpdateCheck = UpdateCheck.Never)]
        public String unit { get; set; }

        [Column(Name = "cInvCCode", DbType = "VarChar(20) NOT NULL", CanBeNull = false, UpdateCheck = UpdateCheck.Never)]
        public String cCode { get; set; }

        [Column(Name = "cRegNum", DbType = "VarChar(50) NOT NULL", CanBeNull = false, UpdateCheck = UpdateCheck.Never)]
        public String regNum { get; set; }

        [Column(Name = "cRegDate", DbType = "VarChar(40) NOT NULL", CanBeNull = false, UpdateCheck = UpdateCheck.Never)]
        public String registedDate { get; set; }

        [Column(Name = "DataSource", DbType = "int", CanBeNull = false, UpdateCheck = UpdateCheck.Never)]
        public int dataSource { get; set; }
    }
}
